var request = require('../ajax').request
var host = require('../config').hostData.default

// 获得养殖户出货分页列表
export const getChlist = (data) => {
  return new Promise((resolve, reject) => {
    request({
      type: 'default',
      url: host + '/app-api/member/yzh/chPage',
      method: 'GET',
    }, resolve, reject)
  })
}

// 获得养殖户收款分页列表
export const getSklist = (data) => {
  return new Promise((resolve, reject) => {
    request({
      type: 'default',
      data,
      url: host + '/app-api/member/yzh/skPage',
      method: 'GET',
    }, resolve, reject)
  })
}

// 获得养殖户收款详情
export const getSkDetail = (data) => {
  return new Promise((resolve, reject) => {
    request({
      type: 'default',
      data,
      url: host + '/app-api/member/yzh/skDetail',
      method: 'GET',
    }, resolve, reject)
  })
}